package com.geekaca.d05;

import java.util.ArrayList;
import java.util.List;

public class HelloLambdaFor {
    public static void main(String[] args) {
        List<String> nameList = new ArrayList<>();
        nameList.add("张三丰");
        nameList.add("张无忌");
        nameList.add("小昭");
        // lambda 表达式 foreach
        nameList.forEach((name)->{
            System.out.println(name);
        });
    }
}
